import numpy as np

# 定义两个矩阵
arr1 = np.array([[1, 2], [3, 4]])
arr2 = np.array([[5, 6], [7, 8]])

# 矩阵乘法
result_dot = np.dot(arr1, arr2)
result_at = arr1 @ arr2

print("Matrix multiplication using np.dot:\n", result_dot)
print("Matrix multiplication using @ operator:\n", result_at)
print("Element-wise multiplication:\n", result_at1)
